package chapter15;

/**
 * Created by V5470-I5 on 2016/4/21.
 */
import java.io.IOException;
import java.util.logging.*;
public class HandlerDemo {
    public static void main(String[] args) throws IOException{
        Logger logger=Logger.getLogger(HandlerDemo.class.getName());
        logger.setLevel(Level.CONFIG);
        FileHandler handler=new FileHandler("%h/config.log");
        handler.setLevel(Level.CONFIG);
        logger.addHandler(handler);
        logger.config("Logger 组态完成");
    }

}

